package chamster.actions;

import chamster.BaseHamster;

public class TurnRightAction<HamsterType extends BaseHamster> implements HamsterAction<HamsterType> {

	public boolean isApplicable(HamsterType hamster) throws Exception {
		return hamster.chargeLeft(1);
	}

	public void run(HamsterType hamster) throws Exception {
		hamster.turnRight();
	}

}